package com.example.crm.service.impl;

import com.example.crm.entity.Customer;
import com.example.crm.mapper.CustomerMapper;
import com.example.crm.mapper.impl.CustomerMapperImpl;
import com.example.crm.service.CustomerService;

import java.sql.SQLException;

public class CustomerServiceImpl implements CustomerService {


    /**
     * 新增
     */
    @Override
    public int addCustomer(Customer customer) throws SQLException {
        CustomerMapper customerMapper = new CustomerMapperImpl();
        int i = customerMapper.addCustomer(customer);
        return i;
    }
}
